body {
    background-color: #fff;
    animation: change-background 3s linear infinite;
}

.wrapper {
    position: absolute;
    left: 50%;
    top: 70%;
    transform: translate(-50%, 50%) scale(1.5, 1.5);
}

.floor {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 13px;
    background-color: #673c63;
    box-shadow: 0px 2px 5px #111;
    z-index: 2;
}

.candles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 150px;
    transform: translate(-50%, -100%);
    /* border: 1px red solid; */
}

.candles .candle1 {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 35px;
    height: 100px;
    background-color: #fff;
    border: 3px solid #5c3a5b;
    border-bottom: 0px;
    border-radius: 3px;
    transform-origin: center right;
    transform: translate(60%, -25%);
    box-shadow: -2px 0 0 #95c6f2 inset;
    animation: expand-body 3s infinite linear;
}

.candle1_stick,
.candle2_stick {
    position: absolute;
    left: 50%;
    top: 0;
    width: 3px;
    height: 15px;
    background-color: #5c3a5b;
    border: 8px;
    transform: translate(-50%, -100%);
}

.candle2_stick {
    height: 12px;
    transform-origin: bottom;
    animation: stick-animation 3s infinite linear;
}

.candle1_eyes,
.candle2_eyes {
    position: absolute;
    left: 50%;
    top: 0;
    width: 35px;
    height: 30px;
    transform: translate(-50%, 0);
}

.candle1_eye_left {
    position: absolute;
    left: 30%;
    top: 20%;
    width: 5px;
    height: 5px;
    border-radius: 100%;
    background-color: #673c63;
    transform: translate(-70%, 0);
    animation: blink-eye 3s infinite linear;
}

.candle1_eye_right {
    position: absolute;
    left: 70%;
    top: 20%;
    width: 5px;
    height: 5px;
    border-radius: 100%;
    background-color: #673c63;
    transform: translate(-70%, 0);
    animation: blink-eye 3s infinite linear;
}

.candle1_mouth {
    position: absolute;
    left: 40%;
    top: 20%;
    widht: 0;
    height: 0;
    border-radius: 20px;
    background-color: #673c63;
    transform: translate(-50%, 50%);
    animation: uff 3s infinite linear;
}

.candle_smoke1 {
    position: absolute;
    left: 30%;
    top: 50%;
    width: 30px;
    height: 3px;
    /* border-radius: 20px; */
    background-color: grey;
    transform: translate(-50%, -50%);
    animation: move-left 3s infinite linear;
}

.candle_somke2 {
    position: absolute;
    left: 30%;
    top: 40%;
    width: 10px;
    height: 10px;
    /* border-radius: 20px; */
    background-color: grey;
    transform: translate(-50%, -50%);
    animation: move-top 3s infinite linear;
}

.candle2 {
    position: absolute;
    left: 20%;
    top: 65%;
    width: 42px;
    height: 60px;
    background-color: #fff;
    border: 3px solid #5c3a5b;
    border-bottom: 0px;
    border-radius: 3px;
    transform-origin: center right;
    transform: translate(60%, -15%);
    box-shadow: -2px 0 0 #95c6f2 inset;
    animation: shake-left 3s infinite linear;
}

.candle2_eye_left {
    position: absolute;
    display: inline-block;
    left: 30%;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 100%;
    background-color: #673c63;
    transform: translate(-70%, 0);
    float: left;
    animation: changeto-greater 3s infinite linear;
}

.candle2_eye_right {
    position: absolute;
    display: inline-block;
    left: 70%;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 100%;
    background-color: #673c63;
    transform: translate(-70%, 0);
}

.light_wave {
    position: absolute;
    top: 35%;
    left: 35%;
    width: 75px;
    height: 75px;
    border-radius: 100%;
    transform: translate(-25%, -50%) scale(2.5, 2.5);
    border: 2px solid rgba(255, 255, 255, .2);
    animation: expand-light 3s infinite linear;
}

.candle2_fire {
    position: absolute;
    top: 50%;
    left: 40%;
    width: 16px;
    height: 20px;
    display: block;
    background-color: #ff9800;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    transform: translate(-50%, -50%);
    animation: fire-dance 3s infinite linear;
}

@keyframes blink-eye {

    0%,
    35% {
        opacity: 1;
        transform: translate(-70%, 0%);
    }

    35%,
    39% {
        opacity: 0;
        transform: translate(-70%, 0%);
    }

    40% {
        opacity: 1;
        transform: translate(-70%, 0%);
    }

    50%,
    65% {
        transform: translate(-140%, 0%);
    }

    66% {
        transform: translate(-70%, 0%);
    }
}

@keyframes expand-body {

    0%,
    40% {
        transform: translate(60%, -25%) scale(1, 1);
    }

    45%,
    55% {
        transform: translate(60%, -25%) scale(1.1, 1.1);
    }

    60% {
        transform: translate(60%, -25%) scale(0.89, 0.89);
    }

    65% {
        transform: translate(60%, -25%) scale(1, 1);
    }

    75% {
        transform: translate(60%, -25%) scale(1, 1);
    }
}

@keyframes uff {

    0%,
    40% {
        width: 0;
        height: 0;
    }

    50%,
    54% {
        width: 15px;
        height: 15px;
        left: 30%;
    }

    59% {
        width: 5px;
        height: 5px;
        left: 20%;
    }

    62% {
        width: 2px;
        height: 2px;
        left: 20%;
    }

    67% {
        width: 0px;
        height: 0px;
        left: 30%;
    }
}

@keyframes change-background {

    0%,
    59%,
    98%,
    100% {
        background-color: #fff;
    }

    61%,
    97% {
        background-color: #000;
    }
}

@keyframes move-left {

    0%,
    59%,
    100% {
        width: 0px;
        left: 40%;
    }

    60% {
        width: 30px;
        left: 30%;
    }

    68% {
        width: 0px;
        left: 20%;
    }
}

@keyframes move-top {

    0%,
    64%,
    100% {
        width: 0px;
        height: 0px;
        top: 0%;
    }

    65% {
        width: 10px;
        height: 10px;
        left: 40%;
        top: 40%;
    }

    80% {
        width: 0px;
        height: 0px;
        top: 20%;
    }
}

@keyframes shake-left {

    0%,
    40% {
        left: 20%;
    }

    50%,
    54% {
        left: 20%;
        transform: translate(60%, -15%);
    }

    59% {
        left: 20%;
        transform: translate(60%, -15%);
    }

    62% {
        left: 18%;
        transform: translate(60%, -15%);
    }

    67% {
        left: 20%;
        transform: translate(60%, -15%);
    }

    75% {
        left: 20%;
        transform: translate(60%, -15%) scale(1.15, 0.85);
        /* background: #fff; */
        /* background-color: #673c63; */

    }

    91% {
        left: 20%;
        transform: translate(60%, -15%) scale(1.18, 0.82);
        background: #f44336;
        background-color: #f44336;
        box-shadow: -2px 0px 0px #f44336 inset;
    }

    95% {
        left: 20%;
        transform: translate(60%, -15%) scale(1.05, 0.95);
    }

    97% {
        left: 20%;
        transform: translate(60%, -15%) scale(1, 1);
    }
}

@keyframes stick-animation {

    0%,
    40% {
        left: 50%;
        top: 0%;
        transform: translate(-50%, -100%);
    }

    50%,
    54% {
        left: 50%;
        top: 0%;
        transform: translate(-50%, -100%);
    }

    59% {
        left: 50%;
        top: 0%;
        transform: translate(-50%, -100%);
    }

    62% {
        left: 50%;
        top: 0%;
        transform: translate(-50%, -100%) rotateZ(-15deg);
    }

    65% {
        left: 50%;
        top: 0%;
        transform: translate(-50%, -100%) rotateZ(15deg);
    }

    70% {
        left: 50%;
        top: 0%;
        transform: translate(-50%, -100%) rotateZ(-5deg);
    }

    72% {
        left: 50%;
        top: 0%;
        transform: translate(-50%, -100%) rotateZ(5deg);
    }

    74%,
    84% {
        left: 50%;
        top: 0%;
        transform: translate(-50%, -100%) rotateZ(0deg);
    }

    85% {
        transform: translate(0%, 200%) rotateZ(180deg);
        /* background-color: #f44336; */
    }

    92% {
        transform: translate(-50%, -100%);
    }
}

@keyframes expand-light {

    10%,
    29%,
    59%,
    89% {
        transform: translate(-25%, -50%) scale(0, 0);
        border: 2px solid rgba(255, 255, 255, 0)
    }

    90%,
    20%,
    50% {
        transform: translate(-25%, -50%) scale(1, 1);
    }

    95%,
    96%,
    26%,
    27%,
    56%,
    57% {
        transform: translate(-25%, -50%) scale(2, 2);
        border: 2px solid rgba(255, 255, 255, 0.2)
    }

    0%,
    28%,
    58%,
    100% {
        transform: translate(-25%, -50%) scale(2.5, 2.5);
        border: 2px solid rgba(255, 255, 255, 0.2)
    }
}

@keyframes fire-dance {

    59%,
    89% {
        left: 40%;
        width: 0px;
        height: 0px;
    }

    90%,
    0%,
    7%,
    15%,
    23%,
    31%,
    39%,
    47%,
    55% {
        left: 40.8%;
        width: 16px;
        height: 20px;
        background-color: #ffc107;
    }

    94%,
    3%,
    11%,
    19%,
    27%,
    35%,
    43%,
    51%,
    58% {
        left: 41.2%;
        width: 16px;
        height: 20px;
        background-color: #ffc107;
    }
}